import request from '@/utils/request'

// 查询拒单转介原因列表
export function listReasonrefuse(query) {
  return request({
    url: '/service/reasonrefuse/list',
    method: 'get',
    params: query
  })
}

// 查询拒单转介原因详细
export function getReasonrefuse(reasonrefuseId) {
  return request({
    url: '/service/reasonrefuse/' + reasonrefuseId,
    method: 'get'
  })
}

// 新增拒单转介原因
export function addReasonrefuse(data) {
  return request({
    url: '/service/reasonrefuse',
    method: 'post',
    data: data
  })
}

// 修改拒单转介原因
export function updateReasonrefuse(data) {
  return request({
    url: '/service/reasonrefuse',
    method: 'put',
    data: data
  })
}

// 删除拒单转介原因
export function delReasonrefuse(reasonrefuseId) {
  return request({
    url: '/service/reasonrefuse/' + reasonrefuseId,
    method: 'delete'
  })
}
